/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.domain.req;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import org.hibernate.validator.constraints.Length;

import java.time.LocalDateTime;
import java.util.List;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *
 *
 * @author wcs
 * @date 2021-3-8
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class SaveExaminationQuestionRequest {
	/**
	 * 题库分类
	 */
	@NotBlank @Length(max=20)
	private String category;
	/**
	 * 试题类型：0-未定义，1-单选题，2-多选题，3-判断题，4-填空题，5-简答题
	 */
	@NotNull @Max(127)
	private Integer type;
	/**
	 * 难度：0-未定义，1-容易、2-常规、3-较难、4-很难
	 */
	@NotNull @Max(127)
	private Integer difficulty;
	/**
	 * 题干
	 */
	@NotBlank @Length(max=1000)
	private String content;
	/**
	 * 题解
	 */
	@Length(max=1000)
	private String solution;
	/**
	 * 答案
	 */
	@NotBlank @Length(max=1000)
	private String answer;
	/**
	 * 分数
	 */
	@NotNull
	private Integer score;
	/**
	 * 试题选项
	 */
	private List<SaveExaminationQuestionOptionRequest> options;

}
